<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use Carbon\Carbon;
class TaskTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
	    $data=[
	    	[
				'id'=>1,
			    'type'=>1,
			    'store_station_id'=>1,
			    'num'=>2,
			    'store_id'=>1,
			    'status'=>0,
			    'to_department_id'=>null,
			    'to_store_station_id'=>null,
			    'start_day'=>'2018-4-20',
			    'end_day'=>'2018-4-23',
			    'start_time'=>'08:00:00',
			    'end_time'=>'18:00:00',
			    'comment'=>'任务描述',
			    'created_at' => Carbon::now(),
			    'updated_at' => Carbon::now()
		    ],
		    [
			    'id'=>2,
			    'store_id'=>1,
			    'type'=>2,
			    'to_department_id'=>1,
			    'to_store_station_id'=>1,
			    'start_day'=>'2018-4-20',
			    'end_day'=>'2018-4-23',
			    'start_time'=>'08:00:00',
			    'end_time'=>'18:00:00',
			    'comment'=>'任务描述',
			    'status'=>0,
			    'store_station_id'=>null,
			    'num'=>null,
			    'created_at' => Carbon::now(),
			    'updated_at' => Carbon::now()
		    ]
	    ];

	    DB::table('task')->insert($data);
    }
}
